package ooday03;

import ooday02.Animal;
import ooday02.Chick;
import ooday02.Dog;
import ooday02.Fish;

public class Animaltest {
    public static void main(String[] args) {
        ooday02.Fish fish=new Fish("鱼鱼",2,"红");
        ooday02.Chick chick=new Chick("唧唧",3,"黑");
        ooday02.Dog dog=new Dog("旺旺",5,"白");
        ooday02.Animal animal=new Animal("神秘",100,"五彩");
        animal.drink();
        animal.eat();
        fish.eat();
        fish.drink();
        chick.layEggs();
        chick.eat();
        chick.drink();
        dog.lookhome();
        dog.eat();
    }
}
